package com.bihucms.ssm.util;

import javax.servlet.http.HttpServletRequest;
import java.util.HashMap;
import java.util.Map;

/**
 * 左侧导航描红
 * Created by benhailong on 2017/10/14.
 */
public class LimitRead {
    // 描红方法
    public static Map<String,Integer> read(HttpServletRequest request){
        Map<String,Integer> map = new HashMap<String, Integer>();
        String gid = request.getParameter("gid");
        String fid = request.getParameter("fid");
        if(gid!=null && "".equals(gid)){
            int rgid = Integer.parseInt("gid");
            map.put("gid",rgid);
        }
        if(fid!=null && "".equals(fid)){
            int rfid = Integer.parseInt("fid");
            map.put("fid",rfid);
        }
        return map;
    }
}
